]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Fix typo in _isToday()
authorDarcy <darcy@beurle.id.au>
Thu, 23 Oct 2014 20:11:09 +0000 (07:11 +1100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 3 Nov 2014 14:03:54 +0000 (15:03 +0100)
getDay() is the day of week, what we want there is getDate().

https://bugzilla.gnome.org/show_bug.cgi?id=738725

js/ui/dateMenu.js

index 79787eb8ebb8bc97b44cf4776cd8bda424b79374..4bf22b46e9519049e8326dfb4a9baa61c098a00f 100644 (file)
@@ -147,7 +147,7 @@ const DateMenuButton = new Lang.Class({
         let now = new Date();
         return now.getYear() == date.getYear() &&
                now.getMonth() == date.getMonth() &&
-               now.getDay() == date.getDay();
+               now.getDate() == date.getDate();
     },
 
     _appInstalledChanged: function() {